<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>

<script src="https://cdn.bootcss.com/flv.js/1.4.0/flv.min.js"></script>
<video id="videoElement" style="width: 30%;" controls="controls"></video>
<#--<video id="videoElement1" style="width: 30%;" controls="controls"></video>-->
<script>
    if (flvjs.isSupported()) {
        /*
            node-media-server版本
        */
        // var videoElement = document.getElementById('videoElement');
        // var flvPlayer = flvjs.createPlayer({
        //     type: 'flv',
        //     url:'http://192.168.0.188:8000/live/home.flv'
        // });
        // flvPlayer.attachMediaElement(videoElement);
        // flvPlayer.load();
        // flvPlayer.play();

        /*
           ZLMediaKit版本
        */
        var videoElement1 = document.getElementById('videoElement');
        var flvPlayer1 = flvjs.createPlayer({
            type: 'flv',
            url:'http://127.0.0.1/live/home.flv'
        });
        flvPlayer1.attachMediaElement(videoElement1);
        flvPlayer1.load();
        flvPlayer1.play();
    }
</script>
</body>
</html>